import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../home.vue'
import UpdatePage from '../updataPage.vue'
import downPage from '../deviceUpdataPage/downPage.vue'
import test from '../test.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/update',
    name: 'Update',
    component: UpdatePage
  },
  {
    path: '/downPage',
    name: 'downPage',
    component: downPage
  },
  {
    path: '/test',
    name: 'test',
    component: test
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 